using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class okok : MonoBehaviour
{
  public float Diedtime;
  public GameObject Died;
  public GameObject fj;

    // Start is called before the first frame update
    private void OnTriggerEnter2D(Collider2D collision)
    {

        collision.gameObject.GetComponent<wxfj>().health -= 10000;


    }
    // Update is called once per frame
    void OnDestroy()
    {
        Instantiate(Died, transform.position, Quaternion.identity);
    }
  }
